package com.winton.model;

import java.sql.Date;

public class S_USER {
	
	private int id;
	
	private String username;
	
	private String loginid;
	
	private String password;
	
	private Date systime;
	
	private int deleted;
	
	private String starttime;
	
	private String endtime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getLoginid() {
		return loginid;
	}

	public void setLoginid(String loginid) {
		this.loginid = loginid;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getSystime() {
		return systime;
	}

	public void setSystime(Date systime) {
		this.systime = systime;
	}

	public int getDeleted() {
		return deleted;
	}

	public void setDeleted(int deleted) {
		this.deleted = deleted;
	}
	
	public String getStarttime() {
		return starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	public String getEndtime() {
		return endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	@Override
	public String toString() {
		return "S_USER [id=" + id + ", username=" + username + ", loginid=" + loginid + ", password=" + password
				+ ", systime=" + systime + ", deleted=" + deleted + "]";
	}

	public Object[] getInsertFields() {
		return new Object[]{username,loginid,password};
	}

	public Object[] getUpdateFields() {
		
		return new Object[]{username,loginid,password,id};
	}
	
	
	

}
